home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Xm / XmStringDrawImage.z / XmStringDrawImage
Encoding:
Text File  |  2001-04-17  |  5.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV     XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee - A compound string function that draws a
  10.           compound string in an X Window and creates an image
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/Xm.h>
  14.           vvvvooooiiiidddd XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee(
  15.           DDDDiiiissssppppllllaaaayyyy **** dddd,
  16.           WWWWiiiinnnnddddoooowwww wwww,
  17.           XXXXmmmmRRRReeeennnnddddeeeerrrrTTTTaaaabbbblllleeee rrrreeeennnnddddeeeerrrrttttaaaabbbblllleeee,
  18.           XXXXmmmmSSSSttttrrrriiiinnnngggg ssssttttrrrriiiinnnngggg,
  19.           GGGGCCCC ggggcccc,
  20.           PPPPoooossssiiiittttiiiioooonnnn xxxx,
  21.           PPPPoooossssiiiittttiiiioooonnnn yyyy,
  22.           DDDDiiiimmmmeeeennnnssssiiiioooonnnn wwwwiiiiddddtttthhhh,
  23.           uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr aaaalllliiiiggggnnnnmmmmeeeennnntttt,
  24.           uuuunnnnssssiiiiggggnnnneeeedddd cccchhhhaaaarrrr llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn,
  25.           XXXXRRRReeeeccccttttaaaannnngggglllleeee **** cccclllliiiipppp);
  26.  
  27.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  28.           This page documents Motif 2.1.
  29.  
  30.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  31.           XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeeedraws a compound string in an X Window and
  32.           paints both the foreground and background bits of each
  33.           character.  If a compound string segment uses a rendition
  34.           that contains a font set, the graphic context passed to this
  35.           routine will have the GC font member left in an undefined
  36.           state. The underlying XXXXmmmmbbbbSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwww function called by this
  37.           routine modifies the font ID field of the GC passed into it
  38.           and does not attempt to restore the font ID to the incoming
  39.           value. If the compound string segment is not drawn using a
  40.           font set, the graphic context must contain a valid font
  41.           member. Graphic contexts created by XXXXttttGGGGeeeettttGGGGCCCC are not accepted
  42.           by this routine; instead, use XXXXttttAAAAllllllllooooccccaaaatttteeeeGGGGCCCCto create a
  43.           graphic context.
  44.  
  45.           _d         Specifies the display.
  46.  
  47.           _w         Specifies the window.
  48.  
  49.           _r_e_n_d_e_r_t_a_b_l_e
  50.                     Specifies the render table.
  51.  
  52.           _s_t_r_i_n_g    Specifies the string.
  53.  
  54.           _g_c        Specifies the graphics context to use.
  55.  
  56.           _x         Specifies a coordinate of the rectangle that will
  57.                     contain the displayed compound string.
  58.  
  59.           _y         Specifies a coordinate of the rectangle that will
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 4/6/01)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV     XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwwwIIIImmmmaaaaggggeeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.                     contain the displayed compound string.
  75.  
  76.           _w_i_d_t_h     Specifies the width of the rectangle that will
  77.                     contain the displayed compound string.
  78.  
  79.           _a_l_i_g_n_m_e_n_t Specifies how the string will be aligned within
  80.                     the specified rectangle.  It is either
  81.                     XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____BBBBEEEEGGGGIIIINNNNNNNNIIIINNNNGGGG, XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____CCCCEEEENNNNTTTTEEEERRRR, or
  82.                     XXXXmmmmAAAALLLLIIIIGGGGNNNNMMMMEEEENNNNTTTT____EEEENNNNDDDD.
  83.  
  84.           _l_a_y_o_u_t__d_i_r_e_c_t_i_o_n
  85.                     Controls the direction in which the segments of
  86.                     the compound string will be laid out. It also
  87.                     determines the meaning of the _a_l_i_g_n_m_e_n_t parameter.
  88.  
  89.           _c_l_i_p      Allows the application to restrict the area into
  90.                     which the compound string will be drawn.  If NULL,
  91.                     clipping will be determined by the GC.
  92.  
  93.      RRRREEEELLLLAAAATTTTEEEEDDDD
  94.           XXXXmmmmSSSSttttrrrriiiinnnnggggCCCCrrrreeeeaaaatttteeee(3).
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 4/6/01)
  130.  
  131.  
  132.  
  133.